if fontface and fontsize and fontback or fontfore:
if body_bgcolor and fontback and fontback != (255, 255, 255):
bodyattrs = 'BGCOLOR="#%s"' % tohex(fontback)
fontattrs = None(None(None, [
None,
' '.join,
filter,
(lambda s: bool(s)) if fontface else '' if fontsize else '' if fontfore else '' if not body_bgcolor and fontback and fontback[:3] != (255, 255, 255) else '']))